package com.yubest.seataorder.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

@FeignClient(value = "spring-cloud-alibaba-seata-account")
public interface AccountServiceFeign {

    @PostMapping(value = "/account/sub")
    Boolean sub(@RequestParam("accountId") Integer accountId, @RequestParam("money") BigDecimal money);
}
